package com.itheima.day12;

import java.io.File;

//在某个目录下创建2000级别目录
public class Test02 {
    public static void main(String[] args) {

        File file = new File("d:\\abcd");
        mkdirMethod(file,2000);

    }

    public static void mkdirMethod(File dir , int ceng){
        File dirc= new File(dir,ceng-1+"");
        if(ceng==1){
            dirc.mkdirs();
            return;
        }

        mkdirMethod(dirc,ceng-1);


    }

}
